import config
# 定义类
class LoginAPI:
    # 初始化
    def __init__(self):
        self.url = config.URL
# 移动端登陆接口，密码只需前32位正确即可，web登陆需要67位
    # 方法
    def kklLogin(self,session,param):
        login_data = {

            "secret_state": "F6D375DF5657B1D755C7FF709046D891",
            "service_name": "kusercen.LoginFacade.loginMobile",
            "strategy": "dubbo",
            "param": param,
            "token": "",
            "timestamp": "1668676167038",
            "client_id": "6"
        }
        return session.post(self.url,json = login_data)


# "{\"loginInfo\":{\"password\":\"E10ADC3949BA59ABBE56E057F20F883E\",\"mobileNo\":\"18790680009\",\"deviceId\":\"D414C492-80A2-4615-A640-B1E180036031\",\"clientType\":\"ios\",\"userAgent\":\"KKLOnLine\\\/5.28.0 (iPhone; iOS 13.6; Scale\\\/3.00; appVersion 5.28.0; XHX)\",\"loginIp\":\"172.17.2.49\"}}"